/*
 * File:   HotelItem.h
 * Author: AbDuLlaH
 *
 * Created on February 5, 2015, 2:14 PM
 */

#ifndef HOTELITEM_H
#define	HOTELITEM_H

#include<iostream>
#include<fstream>
#include<ostream>
#include<sstream>
#include<string>
#include<vector>
#include<cstdlib>
#include<iomanip>
#include "DB.h"

using namespace std;

class HotelItem
{
    
private:
    
    string hotelID;
    string name;
    string address;
    string country;
    string district;
    string category;
    vector<HotelItem> tempVector;
    vector<HotelItem>::iterator p;
    
public:
    
    HotelItem();
    HotelItem(string,string,string,string,string,string);
    
    void setHotelID(string);
    void setName(string);
    void setAddress(string);
    void setCountry(string);
    void setDistrict(string);
    void setCategory(string);
    
    string getHotelID();
    string getName();
    string getAddress();
    string getCountry();
    string getDistrict();
    string getCategory();
    
    void addHotelItem();
    void deleteHotelItem();
    void modifyHotelItem();
    
    bool confirmation();
    
    void display();
    
    static bool validHotelId(vector<HotelItem>&,string);
    
    friend istream& operator>>(istream&, HotelItem&);
    friend ostream& operator<<(ostream&, HotelItem&);

};


#endif	/* HOTELITEM_H */

